package string;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/28
 **/
public class StartsWithDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        boolean starts=str.startsWith("think");
        System.out.println(starts);
        boolean ends=str.endsWith("va");
        System.out.println(ends);
    }
}
